package core.september.cloudbadge.dao;

import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyFactory;
import com.googlecode.objectify.ObjectifyService;

import core.september.cloudbadge.model.badge.BaseField;
import core.september.cloudbadge.model.badge.UserField;
import core.september.cloudbadge.model.user.Template;
import core.september.cloudbadge.model.user.UserModel;


public class OFYService {
	    static {
	        factory().register(UserModel.class);
	        factory().register(UserField.class);
	        factory().register(BaseField.class);
	        factory().register(Template.class);

	    }

	    public static Objectify ofy() {
	        return ObjectifyService.begin();
	    }

	    public static ObjectifyFactory factory() {
	        return ObjectifyService.factory();
	    }

}
